package base.iterator.vctor;



import java.util.Iterator;

public class Main1 {

    public static void main(String[] args) {
        WaterShelf bookShelf = new WaterShelf();
        bookShelf.appendWater(new Water("a"));
        bookShelf.appendWater(new Water("b"));
        bookShelf.appendWater(new Water("c"));
        Iterator it = (Iterator) bookShelf.iterator();
        while(it.hasNext()) {
            System.out.println(it.next());
        }
    }
}
